﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform.Dc
{
    /// <summary>
    /// 公用项目类别
    /// </summary>
    [Table("PUB_ITEM_TYPE")]
    public class PubItemType : Entity<Guid>, IMultiTenant, ISoftDelete
    {
        /// <summary>
        /// 公用项目类别编码
        /// </summary>
        [Column("PUB_ITEM_TYPE_CODG")]
        public string PubItemTypeCodg { get; set; }

        /// <summary>
        /// 公用项目类别名称
        /// </summary>
        [Column("PUB_ITEM_TYPE_NAME")]
        public string PubItemTypeName { get; set; }

        /// <summary>
        /// 处方项目分类代码
        /// </summary>
        [Column("RX_ITEM_TYPE_CODE")]
        public string RxItemTypeCode { get; set; }

        /// <summary>
        /// 处方项目分类名称
        /// </summary>
        [Column("RX_ITEM_TYPE_NAME")]
        public string RxItemTypeName { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        public bool IsDeleted { get; set; }

        public PubItemType()
        { 
        
        }

        public PubItemType(string pubItemTypeCodg, string pubItemTypeName
            , string rxItemTypeCode, string rxItemTypeName)
        {
            PubItemTypeCodg = pubItemTypeCodg;
            PubItemTypeName = pubItemTypeName;
            RxItemTypeCode = rxItemTypeCode;
            RxItemTypeName = rxItemTypeName;
        }
    }
}
